﻿@model KL.Store.Web.Models.BannerMenuModel
@using KL.Store.Core
@{
    Layout = null;
}
<table class="table table-striped">
    <thead>
        <tr>
            <td>ID</td>
            <td>İsim</td>
            <td>SKT</td>
        </tr>
    </thead>
    <tbody>
        @foreach (var banner in Model.BannerList)
        {
            <tr id="Banner@(banner.BannerID)" data-id="@(banner.BannerID)" @{if (Model.SelectedBanner == banner.BannerID)
                                                                             {<text> class="selectedBanner"</text>}}>
                <td><a href="javascript:void(0);" onclick="GetBanner(@banner.BannerID);">@banner.BannerID</a></td>
                <td><a href="javascript:void(0);" onclick="GetBanner(@banner.BannerID);">@banner.Name</a></td>
                <td><a href="javascript:void(0);" onclick="GetBanner(@banner.BannerID);">@banner.EndDate.ToString("dd/MM/yyyy")</a></td>
            </tr>
        }
    </tbody>
</table>
<hr />
<div class="col-xs-12 text-right">
    <button type="button" class="btn btn-primary" onclick="GetBanner(0);">Banner Ekle</button>
    <div class="clearfix"></div>
</div>
